﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Lucas.Wendell.PI.Model.Enum;
using Senac.NetMob.Models;

namespace Lucas.Wendell.PI.Model
{
    [Table("Tb_Comodo")]
    public class Comodo : BaseModel
    {
        public int ImovelId { get; set; }

        [ForeignKey("ImovelId")]
        public virtual Imovel Imovel { get; set; }

        [Required]
        public decimal Area { get; set; }

        [Required]
        [StringLength(150, ErrorMessage = NetImobiliariaConstants.MESSAGE_ERROR_STRING_LENGTH)]
        public string Avaliacao { get; set; }

        [StringLength(1000, ErrorMessage = NetImobiliariaConstants.MESSAGE_ERROR_STRING_LENGTH)]
        public string Observacao { get; set; }

        [StringLength(1000, ErrorMessage = NetImobiliariaConstants.MESSAGE_ERROR_STRING_LENGTH)]
        public string Pavimento { get; set; }

        [Required]
        public TipoComodoEnum TipoComodo { get; set; }

        public virtual IList<ComodoCaracteristica> ComodoCaracteristicaL { get; set; }
    }
}
